package com.glb.gilibuy.web.admin;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @Author: Yupeng Zhang
 * @Date: 2021-08-09 9:52
 */
@Api(tags = "视图模块")
@Controller
public class AdminViewController {
    @ApiOperation(value = "获取管理员登录页面", notes = "获取管理员登录页面", produces = "text/html")
    @GetMapping("/adminLoginPage")
    public String adminLoginPage() {
        return "admin/admin_login";
    }

    @ApiOperation(value = "获取管理员商品分类管理页面", notes = "获取管理员商品分类管理页面", produces = "text/html")
    @GetMapping("/admin/adminClassificationManagementPage")
    public String adminClassificationManagementPage() {
        return "admin/classificationManagement";
    }

    @ApiOperation(value = "获取管理员订单管理页面", notes = "获取管理员订单管理页面", produces = "text/html")
    @GetMapping("/admin/adminOrderManagementPage")
    public String adminOrderManagementPage() {
        return "admin/OrderManagement";
    }

    @ApiOperation(value = "获取管理员管理页面", notes = "获取管理员管理页面", produces = "text/html")
    @GetMapping("/admin/adminManagementPage")
    public String adminUserManagementPage() {
        return "admin/AdminManagement";
    }

    @ApiOperation(value = "获取管理员商品管理页面", notes = "获取管理员商品管理页面", produces = "text/html")
    @GetMapping("/admin/adminProductManagementPage")
    public String adminProductManagementPage() {
        return "admin/ProductManagement";
    }

    @ApiOperation(value = "获取layui测试页面", notes = "获取layui测试页面", produces = "text/html")
    @GetMapping("/admin/layuiTestPage")
    public String layuiTestPage() {
        return "admin/layui_test";
    }

    @ApiOperation(value = "获取layui管理员管理页面", notes = "获取layui管理员管理页面", produces = "text/html")
    @GetMapping("/admin/layuiAdminPage")
    public String layuiAdminPage() {
        return "admin/layui_admin";
    }

    @ApiOperation(value = "获取layui管理员商品页面", notes = "获取layui管理员商品页面", produces = "text/html")
    @GetMapping("/admin/layuiProductPage")
    public String layuiProductPage() {
        return "admin/layui_product";
    }

    @ApiOperation(value = "获取layui管理员订单页面", notes = "获取layui管理员订单页面", produces = "text/html")
    @GetMapping("/admin/layuiOrderPage")
    public String layuiOrderPage() {
        return "admin/layui_order";
    }

    @ApiOperation(value = "获取layui管理员添加商品页面", notes = "获取layui管理员添加商品页面", produces = "text/html")
    @GetMapping("/admin/layuiAddProductPage")
    public String layuiAddProductPage() {
        return "admin/layui_product_add";
    }
}
